﻿using System;
using System.Collections.Generic;
using System.Data.Entity.Core.Objects;
using System.Linq;
using System.Web;

namespace WCFPointOfSaleService.Class
{
    public class Utilities
    {
        public static string getDescriptionDetail(Exception ex) {
            string descriptionDetail = string.Empty;
            descriptionDetail += "Error Message: ";
            descriptionDetail += ex.Message != null ? ex.Message : string.Empty;
            descriptionDetail += " Error Exception: ";
            descriptionDetail += ex.InnerException != null ? ex.InnerException.ToString() : string.Empty;
            return descriptionDetail;
        }
    }
}